home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 1138 / source.zip / SOUP.H < prev    next >
C/C++ Source or Header  |  1995-03-05  |  3KB  |  89 lines

  1. /* SOUP (Simple Offline USENET Packet) Format Specification
  2.  
  3.     The SOUP format is (C) 1992-1993, Rhys Weatherley
  4.                                     rhys@cs.uq.oz.au
  5.                                     
  6.     This file is part of Paperboy, an offline mail/newsreader for Windows
  7.     Copyright (C) 1995  Michael H. Vartanian
  8.         vart@clark.net
  9.  
  10.     This program is free software; you can redistribute it and/or modify
  11.     it under the terms of the GNU General Public License as published by
  12.     the Free Software Foundation; either version 2 of the License, or
  13.     (at your option) any later version.
  14.  
  15.     This program is distributed in the hope that it will be useful,
  16.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.     GNU General Public License for more details.
  19.  
  20.     You should have received a copy of the GNU General Public License
  21.     along with this program; if not, write to the Free Software
  22.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23. */
  24.  
  25.  
  26. #ifndef HSOUP
  27. #define HSOUP
  28.  
  29. #include <windows.h>
  30.  
  31. #define DLLFUNC __export __pascal __far
  32.  
  33. #define PBOYDLLMAJVERSION 2     /* Paperboy for Windows DLL version 2.5 */
  34. #define PBOYDLLMINVERSION 6
  35.  
  36. #define SOUPMAJVERSION 1        /* 1.2, as of August 14, 1993 */
  37. #define SOUPMINVERSION 2
  38.  
  39. #define SOUPSEP "\t"            /* <TAB> seperated values */
  40.  
  41. #define MAXLINE 1000                    /* Maximum line length per son-of-rfc1036*/
  42.  
  43. #define ERRMEM  10                      /* Out of memory */
  44. #define ERRIO   20                      /* File I/O error */
  45. #define ERRPARSE 30                     /* Corrupted File Format */
  46.  
  47. #define PATH_SEP        '\\'             /* Directory seperator, /=UNIX, \=MSDOS */
  48.  
  49. #define LFCHAR 10                       /* Line-feed (EOL) character */
  50. #define CRCHAR 13                       /* Carriage-return (CR) character */
  51.  
  52. #define RNEWSHEAD       "#! rnews"      /* #! rnews n */
  53. #define MAILHEAD        "From "
  54.  
  55. #define MSGEXT  ".MSG"          /* Message filename extension */
  56.  
  57. #define MAILTYPE        'm'
  58. #define MAILMMDF        'M'
  59. #define BINMAIL         'b'
  60. #define NEWSTYPE        'n'
  61. #define BINNEWS         'B'
  62. #define RNEWSTYPE       'u'
  63. #define INDEXONLY       'i'
  64.  
  65. #define UNKTYPE         'u'
  66.  
  67. #define REPLYSTR                "Re: "
  68. #define SUBJSTR         "Subject"
  69. #define FROMSTR         "From"
  70. #define DATESTR         "Date"
  71. #define MSGIDSTR        "Message-ID"
  72.  
  73. #define INFOFNAME       "INFO"
  74.  
  75. #define POSTMAIL        1
  76. #define POSTNEWS        2
  77.  
  78. #define TMPFILE         "TEMP"
  79. #define REPLYFILE       "REPLIES"
  80.  
  81. #define SIGTHREAD               15      /* Many newsreaders truncate the subject after 15 characters or so */
  82.  
  83. static char * months [] =
  84.     {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};
  85. static char * dayofweek [] =
  86.     {"Sun","Mon","Tue","Wed","Thu","Fri","Sat"};
  87.  
  88. #endif
  89.